import request from '@/utils/request.js'

// 获取短信验证码
export const getPhoneCode = (data) => request({
    url: '/api/ma/register/sms',
    method: 'GET',
    data: { phoneNumber: data.phoneNumber,uuid:data.uuid }
})
// 获取OpenId
export const getOpenId = (code) => request({
    url: '/api/ma/auth',
    method: 'GET',
    data: { jsCode: code }
})
// 注册
export const register = (data) => request({
    url: '/api/ma/register',
    method: 'post',
    data: data
})

export const login = (data) => request({
    url: '/auth/wxLogin',
    method: 'post',
    data: data
})
